package com.strive.village.service;

import com.strive.village.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 服务类
 */
public interface SysUserService extends IService<SysUser> {
    SysUser getByUsername(String username);
    String getUserAuthorityInfo(Long userId); // 根据用户ID获取权限信息
    void clearUserAuthorityInfo(String username); // 删除某个用户的权限信息
    void clearUserAuthorityInfoByRoleId(Long roleId); // 删除某个用户
    void clearUserAuthorityInfoByMenuId(Long menuId); // 菜单变化后 删除与菜单相关的用户权限
}
